home *** CD-ROM | disk | FTP | other *** search
- package javax.annotation;
-
- import java.lang.annotation.ElementType;
- import java.lang.annotation.Retention;
- import java.lang.annotation.RetentionPolicy;
- import java.lang.annotation.Target;
-
- @Target({ElementType.TYPE, ElementType.FIELD, ElementType.METHOD})
- @Retention(RetentionPolicy.RUNTIME)
- public @interface Resource {
- String name() default "";
-
- Class type() default Object.class;
-
- AuthenticationType authenticationType() default javax.annotation.Resource.AuthenticationType.CONTAINER;
-
- boolean shareable() default true;
-
- String mappedName() default "";
-
- String description() default "";
- }
-